/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

.dialog-header button.combobutton {
  align-items: stretch;
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  flex: none;
  font-weight: 500;
  outline: none;
  padding: 8px;
  position: relative;
  user-select: none;
}

.dialog-header .combobutton > .button {
  align-items: center;
  display: flex;
}

.dialog-header .combobutton > .ripples {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}

.dialog-header .combobutton > .ripples > files-toggle-ripple {
  height: 28px;
  top: 2px;
}

.dialog-header .combobutton > .ripples > paper-ripple {
  color: black;
}

.dialog-header .combobutton > .button > .action {
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-top: 1px;
  z-index: 1;
}

html[dir='rtl'] .dialog-header .combobutton > .button > .action {
  background-position: right center;
}

.dialog-header .combobutton > .button > .trigger {
  margin-inline-end: -8px;
  margin-inline-start: 2px;
  margin-top: -1px;
  width: 22px;
}

.dialog-header.files-ng .combobutton > .button > .trigger {
  left: 2px;
  position: relative;
  right: 2px;
}

/* This pseudo element expands clickable area of the .trigger */
.dialog-header .combobutton > .button > .trigger::before {
  content: '';
  display: block;
  height: 40px;
  position: absolute;
  top: -2px;
  width: 30px;
}

.dialog-header .combobutton:not([multiple]) > .button > .trigger {
  display: none;
}

.dialog-header .combobutton[hidden] {
  display: none;
}
